﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///收货单明细
    ///</summary>
    [SugarTable("t_ReceivingBillDetail")]
    public partial class t_ReceivingBillDetail
    {
        public t_ReceivingBillDetail()
        {


        }
        /// <summary>
        /// Desc:主键Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:关联单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int BillId { get; set; }

        /// <summary>
        /// Desc:关联单号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string BillNO { get; set; }

        /// <summary>
        /// Desc:行号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BillLineNO { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:物料类型编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeCode { get; set; }

        /// <summary>
        /// Desc:物料类型名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeName { get; set; }

        /// <summary>
        /// Desc:数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public decimal QTY { get; set; }

        /// <summary>
        /// Desc:收货数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public decimal ReceivedQTY { get; set; }

        /// <summary>
        /// Desc:状态：0-未收货；1-已收货；
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:确定时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ConfirmDate { get; set; }

        /// <summary>
        /// Desc:采购单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PurchaseOrderNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SupplierId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SupplierName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? CheckedQTY { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? NeedCheckQTY { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsNeedQC { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? Price { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? TotalPrice { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNoExplain { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ProduceFactory { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? OutFactoryDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Laboratory { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? PositionType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SampleSize { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SampleTypeCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SampleWeight { get; set; }

    }
}
